import Layout from '@/layout'
export default [
    {
        path: '/student',
        component: Layout,
        redirect: '/app/student',
        name: 'Student',
        meta: { title: 'Student', icon: 'peoples' },
        children: [
            {
                path: 'index',
                name: 'StudentIndex',
                component: () => import('@/views/student/index'),
                meta: { title: '学生管理', icon: 'peoples' }
            },
            {
                path: 'course',
                name: 'StudentCourse',
                component: () => import('@/views/student/course'),
                hidden: true,
                meta: { title: '报课中心', icon: 'user' }
            }
        ]
    },
    {
        path: '/course',
        component: Layout,
        name: 'Course',
        meta: { title: '课程管理', icon: 'excel' },
        children: [
            {
                path: 'index',
                name: 'CourseIndex',
                component: () => import('@/views/course/index'),
                meta: { title: '课程列表', icon: 'el-icon-caret-right' }
            },
            {
                path: 'type',
                name: 'CourseType',
                component: () => import('@/views/course/type'),
                meta: { title: '课程分类', icon: 'el-icon-caret-right' }
            },
            {
                  path: 'arrange',
                  name: 'CourseArrange',
                  component: () => import('@/views/course/arrange'),
                  meta: { title: '排课管理', icon: 'el-icon-caret-right' }
            }
        ]
    },
    {
        path: '/class',
        component: Layout,
        name: 'Class',
        meta: { title: '班级管理', icon: 'table' },
        children: [
            {
                path: 'index',
                name: 'ClassIndex',
                component: () => import('@/views/class/index'),
                meta: { title: '班级管理', icon: 'el-icon-caret-right' }
            },
            {
                path: 'student',
                name: 'ClassStudent',
                component: () => import('@/views/class/student'),
                meta: { title: '班级学生', icon: 'el-icon-caret-right' }
            }
        ]
    },
    {
        path: '/room',
        component: Layout,
        name: 'Room',
        meta: { title: '教室管理', icon: 'user' },
        children: [
            {
                path: 'index',
                name: 'RoomIndex',
                component: () => import('@/views/room/index'),
                meta: { title: '教室管理', icon: 'el-icon-s-shop' }
            }
        ]
    },
    {
        path: '/teacher',
        component: Layout,
        redirect: '/app/student',
        name: 'Teacher',
        meta: { title: '教师管理', icon: 'user' },
        children: [
            {
                path: 'index',
                name: 'TeacherIndex',
                component: () => import('@/views/teacher/index'),
                meta: { title: '教师管理', icon: 'el-icon-caret-right' }
            },
            {
                path: 'course',
                name: 'TeacherCourseCount',
                component: () => import('@/views/teacher/course'),
                meta: { title: '课时统计', icon: 'el-icon-caret-right' }
            }
            // {
            //     path: 'commission',
            //     name: 'TeacherCommission',
            //     component: () => import('@/views/teacher/commission'),
            //     meta: { title: '佣金统计', icon: 'el-icon-caret-right' }
            // }
        ]
    },
    {
        path: '/data',
        component: Layout,
        meta: { title: '数据统计', icon: 'el-icon-setting' },
        children: [
            {
                path: 'course',
                name: 'DataCourseCount',
                component: () => import('@/views/data/course'),
                meta: { title: '核销统计', icon: 'el-icon-s-data' }
            }
        ]
    },
    {
        path: '/setting',
        component: Layout,
        meta: { title: '系统设置', icon: 'el-icon-setting' },
        children: [
            {
                path: 'company',
                name: 'Setting',
                component: () => import('@/views/setting/company'),
                meta: { title: '企业信息', icon: 'el-icon-caret-right' }
            },
            {
                path: 'managers',
                name: 'Managers',
                component: () => import('@/views/setting/managers'),
                meta: { title: '管理人员', icon: 'el-icon-caret-right' }
            }
        ]
    }
]
